public class Hw605 {
    public static void main(String[] args) {
        int[] arr1 = {68,27,95,88,171,996,51,210};
        int sum = 0;

        for (int i = 0; i < arr1.length; i++) {
            int ge = arr1[i] % 10;
            int shi = arr1[i] / 10 % 10;
            if((ge!=7) && (shi!=7) && ((arr1[i]%2) == 0)){
                sum += arr1[i];
            }
        }
        System.out.println("满足要求的元素和为:" + sum);
    }
}
